package main

import (
	"fmt"
	"github.com/gogf/gf/frame/g"
	"web/app/dbo"
	_ "web/boot"
	_ "web/router"
)

func main() {
	// 初始化 DB
	_, err := dbo.New()
	if err != nil {
		fmt.Println("连接失败！")
	} else {
		fmt.Println("连接成功！")
	}
	g.Server().Run()
}
